<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/moon/css/bootstrap.css}"/>
</head>
<body>
<div id="vm">
    <div>
        <button th: @click="javascript:shs() ;">查询</button>
    </div>

    <div>
        <table class="table">
            <tr v-for="p in show">
                <td>{{p.id}}</td>
                <td>{{p.name}}</td>
            </tr>
        </table>
    </div>
</div>
<script th:src="@{/moon/js/jquery.js}"></script>
<script th:inline="javascript">
    var vm = new Vue({
        el: "#vm",
        data: {
            show: []
        },
        methods: {
            shs: function () {
                $.post("", {}, function (d) {
                    vm.show = d.list;
                });
            }
        }
    });
</script>
</body>
</html>